﻿namespace StarsAdmin.Core.Models
{
    /// <summary>
    /// 分页泛型集合
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Page<T>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int CurrentPage { get; set; }

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 总条数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { get; set; }

        /// <summary>
        /// 当前页集合
        /// </summary>
        public IEnumerable<T>? Items { get; set; }
    }
}